//
//  BBAppController.h
//  xNose
//
//  Created by ben smith on 9/7/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

// this is the app delegate, it gets everything started properly
@class BBOSCListener;
@class BBTUIODispatchDelegate;
@class BBFullScreenController;

@interface BBAppController : NSObject {
	BBOSCListener * oscListener;
	BBTUIODispatchDelegate * dispatchDelegate;
	NSPoint currentTouchPosition;
	IBOutlet BBFullScreenController * fullscreenController;
}

@property (assign) NSPoint currentTouchPosition;
@property (retain) BBOSCListener * oscListener;
@property (retain) BBTUIODispatchDelegate * dispatchDelegate;

-(void)connect;
- (IBAction)loadProject:(id)sender;
- (IBAction)newProject:(id)sender;
- (IBAction)resetNodeTree:(id)sender;
- (IBAction)saveProjectToFile:(id)sender;
- (NSString*)applicationSupportFolder ;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification;
- (void)applicationWillTerminate:(NSNotification *)aNotification;
- (void)awakeFromNib;
- (void)disclose:(id)n;
- (void)loadFromFile:(NSString*)filename;
- (void)saveToFile:(NSString*)filename;
+(BBAppController*)sharedAppController;
// 11 methods
-(IBAction)commandOne:(id)sender;
-(IBAction)launchOther:(id)sender;




@end
